home *** CD-ROM | disk | FTP | other *** search
Winamp Compiled Maki Script | 2003-11-16 | 3.3 KB | 117 lines |
- /* Note: a decompiler is no invitation to steal code.
- Please respect the the copyright */
-
- #include "std.mi"
- Global GuiObject GuiObject2;
- Global GuiObject GuiObject3;
- Global GuiObject GuiObject4;
- Global Text Text5;
- Global Layer Layer6;
- Global Group Group7;
- Global Int Int8;
- Global Int Int9;
-
- Function func556();
-
- System.onScriptLoaded()
- {
- Int8 = 0;
- Int9 = 0;
- Group7 = System.getScriptGroup();
- if(( Group7 == Null)) {
- System.messageBox(( "titlebar\.maki\ can\ only\ run\ within\ a\ group"), ( "Error"), 0, ( ""));
- return Null;
- }
- GuiObject2 = Group7.findObject(System.getToken(System.getParam(), ( "\;"), 0));
- GuiObject4 = Group7.findObject(System.getToken(System.getParam(), ( "\;"), 1));
- if(( GuiObject4 != Null)) {
- Text5 = GuiObject4.findObject(( "window\.titlebar\.title"));
- Layer6 = GuiObject4.findObject(( "window\.titlebar\.title\.overlay"));
- }
- GuiObject3 = Group7.findObject(System.getToken(System.getParam(), ( "\;"), 2));
- return Null;
- }
-
- Int Group7.onNotify(String command, String param, int a, int b)
- {
- String String25;
- String String24;
- String24 = System.getToken(command, ( "\,"), 0);
- String25 = System.getToken(command, ( "\,"), 1);
- if(( ( String24 == ( "padtitleright")) || ( String24 == ( "padtitleright")))) {
- System.onSetXuiParam(String24, String25);
- }
- return Null;
- }
-
- System.onSetXuiParam(String param, String value)
- {
- if(( param == ( "padtitleright"))) {
- Int9 = ( Int9 + System.StringToInteger(value));
- func556();
- }
- if(( param == ( "padtitleleft"))) {
- Int8 = ( Int8 + System.StringToInteger(value));
- func556();
- }
- return Null;
- }
-
- func556()
- {
- Int Int31;
- Int Int32;
- Layout Layout33;
- Int Int34;
- Int Int30;
- Int30 = 0;
- Int31 = 0;
- Int32 = Group7.getWidth();
- Layout33 = Group7.getParentLayout();
- Int31 = Layout33.getWidth();
- if(( GuiObject4 != Null)) {
- Int30 = GuiObject4.getAutoWidth();
- }
- Int34 = ( ( Int31 - Int30) / 2);
- Int34 = Layout33.clientToScreenX(Int34);
- Int34 = Group7.screenToClientX(Int34);
- Int34 = ( Int34 - Group7.getLeft());
- if(( GuiObject4 != Null)) {
- GuiObject4.setXmlParam(( "x"), System.integerToString(Int34));
- GuiObject4.setXmlParam(( "relatx"), ( "0"));
- GuiObject4.setXmlParam(( "w"), System.integerToString(Int30));
- GuiObject4.setXmlParam(( "relatw"), ( "0"));
- Layer6.setXmlParam(( "x"), System.integerToString(Int34));
- Layer6.setXmlParam(( "relatx"), ( "0"));
- Layer6.setXmlParam(( "w"), System.integerToString(Int30));
- Layer6.setXmlParam(( "relatw"), ( "0"));
- }
- if(( GuiObject2 != Null)) {
- GuiObject2.setXmlParam(( "x"), System.integerToString(Int8));
- GuiObject2.setXmlParam(( "relatx"), ( "0"));
- GuiObject2.setXmlParam(( "w"), System.integerToString(( ( Int34 - Int8) - 0)));
- GuiObject2.setXmlParam(( "relatw"), ( "0"));
- }
- if(( GuiObject3 != Null)) {
- GuiObject3.setXmlParam(( "x"), System.integerToString(( ( ( Int34 + Int30) + 0) + 1)));
- GuiObject3.setXmlParam(( "relatx"), ( "0"));
- GuiObject3.setXmlParam(( "w"), ( ( "\-") + System.integerToString(( ( ( ( ( Int34 + Int30) + 1) + Int9) + 0) + 1))));
- GuiObject3.setXmlParam(( "relatw"), ( "1"));
- }
- return Null;
- }
-
- Text5.onTextChanged(String newtxt)
- {
- func556();
- return Null;
- }
-
- Group7.onResize(int x, int y, int w, int h)
- {
- func556();
- return Null;
- }
-
-
-